import http from "@/http";
//获取教室列表
export const getRoomListApi = () => {
    return http.get({
        url: '/api/schedule/getRoomList'
    })
}
//获取教师列表
export const getTeacherApi = () => {
    return http.get({
        url: "/api/schedule/getTeacher"
    })
}
//获取课程列表
export const getCourseListApi = () => {
    return http.get({
        url: "/api/schedule/getCourseList"
    })
}
//排课
export const saveScheduleApi = (param: any) => {
    return http.post({
        url: '/api/schedule/saveSchedule',
        data: param
    })
}
//排课列表
export const getScheduleListApi = (param: any) => {
    return http.get({
        url: "/api/schedule/getScheduleList",
        params: param
    })
}
//新增排课
export const addCalendarApi = (param: any) => {
    return http.post({
        url: '/api/schedule/addSchedule',
        data: param
    })
}
//编辑
export const updateCalendarApi = (param: any) => {
    return http.put({
        url: "/api/schedule/updateScheduleById",
        data: param
    })
}
